;try to figure out a place where the user usually installs his games
(if (exists "Games:" (noreq) )
(set @default-dest "Games:")
(if (exists "SYS:Games" (noreq) )
(set @default-dest "SYS:Games")
(if (exists "Work:Games" (noreq) )
(set @default-dest "Work:Games")
(if (exists "JEUX:" (noreq) )
(set @default-dest "JEUX:")
(set @default-dest "SYS:")
)
)
)
)
;ask the user to select a directory to install the game into
(set default-dest
(tackon (askdir (prompt "Where would you like " @app-name " installed?\n"
"A drawer called " GameDir " will be created.")
(help @askdir-help)
(default @default-dest)
(newpath)
)
GameDir
)
)
(set @default-dest default-dest)
(message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST is available from aminet (game/patch) or on my site")
;create the selected directory
(makedir @default-dest
(infos)
)
(copyfiles (source "ischd.readme")
(dest @default-dest)
(infos)
(all)
)
(copyfiles (source "IscHD")
(dest @default-dest)
(infos)
(all)
)
(askdisk
(prompt ("\n\n\n\n\n\nPlease insert %s disk 1 in any drive" @app-name))
(dest "EMPIRE_ISC")
(help "Insert disk 1 in any floppy drive\nor you'll wait for a while!")
)
(copyfiles (source "EMPIRE_ISC:boot.prg")
(dest @default-dest)
)
(copyfiles (source "EMPIRE_ISC:choose.pkd")
(dest @default-dest)
)
(copyfiles (source "EMPIRE_ISC:control.atr")
(dest @default-dest)
)
(copyfiles (source "EMPIRE_ISC:control.dat")
(dest @default-dest)
)
(copyfiles (source "EMPIRE_ISC:disk.dat")
(dest @default-dest)
)
(copyfiles (source "EMPIRE_ISC:end.mod")
(dest @default-dest)
)
(copyfiles (source "EMPIRE_ISC:logo.pkd")
(dest @default-dest)
)
(copyfiles (source "EMPIRE_ISC:map.pkd")
(dest @default-dest)
)
(copyfiles (source "EMPIRE_ISC:map1.map")
(dest @default-dest)
)
(copyfiles (source "EMPIRE_ISC:marathon.atr")
(dest @default-dest)
)
(copyfiles (source "EMPIRE_ISC:marathon.dat")
(dest @default-dest)
)
(copyfiles (source "EMPIRE_ISC:marathon.mod")
(dest @default-dest)
)
(copyfiles (source "EMPIRE_ISC:marathon.pkd")
(dest @default-dest)
)
(copyfiles (source "EMPIRE_ISC:marble.pkd")
(dest @default-dest)
)
(copyfiles (source "EMPIRE_ISC:pistol.sam")
(dest @default-dest)
)
(copyfiles (source "EMPIRE_ISC:player.pkd")
(dest @default-dest)
)
(copyfiles (source "EMPIRE_ISC:refresh.pkd")
(dest @default-dest)
)
(copyfiles (source "EMPIRE_ISC:score.pkd")
(dest @default-dest)
)
(copyfiles (source "EMPIRE_ISC:split.pkd")
(dest @default-dest)
)
(copyfiles (source "EMPIRE_ISC:weather.pkd")
(dest @default-dest)
)
(askdisk
(prompt ("\n\n\n\n\n\nPlease insert %s disk 2 in any drive" @app-name))
(dest "EMPIRE ISC")
(help "Insert disk 2 in any floppy drive\nor you'll wait for a while!")
)
(copyfiles (source "EMPIRE ISC:")
(dest @default-dest)
(all)
)
(message "\n\n\nPlease REMOVE disk 2 and insert disk 3 in any drive")
(askdisk
(prompt ("\n\n\n\n\n\nPlease insert %s disk 3 in any drive" @app-name))
(dest "EMPIRE ISC")
(help "Insert disk 3 in any floppy drive\nor you'll wait for a while!")
)
(copyfiles (source "EMPIRE ISC:")
(dest @default-dest)
(all)
)
(message "\n\n\nPlease REMOVE disk 3 and insert disk 4 in any drive")
(askdisk
(prompt ("\n\n\n\n\n\nPlease insert %s disk 4 in any drive" @app-name))
(dest "EMPIRE ISC")
(help "Insert disk 4 in any floppy drive\nor you'll wait for a while!")